﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using DiBang.Common;

namespace ChangWuDiBang
{
    public partial class FrmDiBangPrint : Office2007Form
    {
        /// <summary>
        /// 用于其他界面传值进入打印界面
        /// </summary>
        public DiBangPrintInfo _DiBangPrintInfo
        {
            get;
            set;
        }   

        public FrmDiBangPrint()
        {
            this.EnableGlass = false;
            InitializeComponent();
        }

        private void FrmDiBangPrint_Load(object sender, EventArgs e)
        {
            this.reportViewer1.LocalReport.EnableExternalImages = true;
            BindingList<DiBangPrintInfo> bindDiBangPrint = new BindingList<DiBangPrintInfo>();
            bindDiBangPrint.Add(_DiBangPrintInfo);
            diBangPrintInfoBindingSource.DataSource = bindDiBangPrint;

            this.reportViewer1.RefreshReport();

        }
    }
}
